package com.wnu.springbootmybatis.Controller;

/**
 * @Author 20424
 * @Date 2020/8/15 12:59
 * @Version 1.0
 */
import java.util.List;

import com.wnu.springbootmybatis.Dao.UserDao;
import com.wnu.springbootmybatis.db.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserController {
    @Autowired
    private UserDao userDao;

    @RequestMapping("/selectUser")
    public List<User> selectUser() {
        List<User> list = userDao.selectUser();
        return list;
    }

}

